package com.yang.springcloud;

import com.yang.rule.MyRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author yds
 * @program springcloud
 * @description 消费者启动类
 * @create 2020-09-17 17:30
 **/
@SpringBootApplication
@EnableEurekaClient
//在微服务启动时,就加在我们自定义的ribbon类
@RibbonClient(name="SPRINGCLOUD-PROVIDER-DEPT",configuration = MyRule.class)
public class DeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class,args);
    }
}
